<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class GroupBuyStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'bail|required|string',
            'describe' => 'bail|nullable|string',
            'body' => 'bail|nullable|string',
            'thumb' => 'bail|nullable|string',
            'type' => 'bail|required|int',
            'data_id' => 'bail|required|int',
            'member_num' => 'bail|required|int',
            'original_price' => 'bail|required|numeric',
            'leader_price' => 'bail|required|numeric',
            'member_price' => 'bail|required|numeric',
            'is_active' => 'bail|required|int',
            'is_public' => 'bail|required|int',
            'must_join' => 'bail|required|int',
            'effective_type' => 'bail|required|int',
            'effective_days' => 'bail|nullable|int',
            'effective_hours' => 'bail|nullable|int',
            'effective_date' => 'bail|nullable|string',
        ];
    }
}
